$(()=> {
  let $pro = $('progress'),
      $start = $('#start'),
      $pause = $('#pause'),
      $reset = $('#reset'),
      timer = null;
$start.click(() => {
  timer = setInterval(() => {
    let val = $pro.val();
    //if(val === 100) clearInterval(timer);
    $pro.attr('value', ++val);
  },100);
});

$pause.click(() => {
  clearInterval(timer);
});

$reset.click(() => {
  $pro.attr('value', 0);
});

});



